package com.memorypalace.deck.vo;

import java.util.Date;

import com.memorypalace.pojo.PageBean;

public class ScreenConditions {
	
	private String userId;
	private String noteTypeId;
	private String noteId;
	private String cardStyleId;
	private ScreenString deckName;
	private ScreenDate noteCreateTime;
	private ScreenDate noteEditTime;
	private ScreenString noteTypeName;
	private ScreenString cardStyleName;
	private ScreenDate cardNextStudyTime;
	private ScreenInteger cardHardFactory;
	private ScreenInteger cardStudyCount;
	private ScreenInteger cardWrongCount;
	
	private PageBean pageBean;
	public ScreenConditions(String userId, String noteTypeId, String noteId, String cardStyleId, ScreenString deckName,
			ScreenDate noteCreateTime, ScreenDate noteEditTime, ScreenString noteTypeName, ScreenString cardStyleName,
			ScreenDate cardNextStudyTime, ScreenInteger cardHardFactory, ScreenInteger cardStudyCount,
			ScreenInteger cardWrongCount) {
		super();
		this.userId = userId;
		this.noteTypeId = noteTypeId;
		this.noteId = noteId;
		this.cardStyleId = cardStyleId;
		this.deckName = deckName;
		this.noteCreateTime = noteCreateTime;
		this.noteEditTime = noteEditTime;
		this.noteTypeName = noteTypeName;
		this.cardStyleName = cardStyleName;
		this.cardNextStudyTime = cardNextStudyTime;
		this.cardHardFactory = cardHardFactory;
		this.cardStudyCount = cardStudyCount;
		this.cardWrongCount = cardWrongCount;
	}
	public ScreenConditions() {
		
	}
	
	public ScreenConditions(String userId) {
		super();
		this.userId = userId;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getNoteTypeId() {
		return noteTypeId;
	}
	public void setNoteTypeId(String noteTypeId) {
		this.noteTypeId = noteTypeId;
	}
	public String getNoteId() {
		return noteId;
	}
	public void setNoteId(String noteId) {
		this.noteId = noteId;
	}
	public String getCardStyleId() {
		return cardStyleId;
	}
	public void setCardStyleId(String cardStyleId) {
		this.cardStyleId = cardStyleId;
	}
	public ScreenString getDeckName() {
		return deckName;
	}
	public void setDeckName(ScreenString deckName) {
		this.deckName = deckName;
	}
	public ScreenDate getNoteCreateTime() {
		return noteCreateTime;
	}
	public void setNoteCreateTime(ScreenDate noteCreateTime) {
		this.noteCreateTime.setFrom(noteCreateTime.getFrom());
		this.noteCreateTime.setTo(noteCreateTime.getTo());
		this.noteCreateTime.setValue(noteCreateTime.getValue());
		this.noteCreateTime.setRelativeValue(noteCreateTime.getRelativeValue());
		this.noteCreateTime.setPattern(noteCreateTime.getPattern());
	}
	public ScreenDate getNoteEditTime() {
		return noteEditTime;
	}
	public void setNoteEditTime(ScreenDate noteEditTime) {
		this.noteEditTime.setFrom(noteEditTime.getFrom());
		this.noteEditTime.setTo(noteEditTime.getTo());
		this.noteEditTime.setValue(noteEditTime.getValue());
		this.noteEditTime.setRelativeValue(noteEditTime.getRelativeValue());
		this.noteEditTime.setPattern(noteEditTime.getPattern());
	}
	public ScreenString getNoteTypeName() {
		return noteTypeName;
	}
	public void setNoteTypeName(ScreenString noteTypeName) {
		this.noteTypeName = noteTypeName;
	}
	public ScreenString getCardStyleName() {
		return cardStyleName;
	}
	public void setCardStyleName(ScreenString cardStyleName) {
		this.cardStyleName = cardStyleName;
	}
	public ScreenDate getCardNextStudyTime() {
		return cardNextStudyTime;
	}
	public void setCardNextStudyTime(ScreenDate cardNextStudyTime) {
		this.cardNextStudyTime = new ScreenDate(null, null, null, null);
		this.cardNextStudyTime.setFrom(cardNextStudyTime.getFrom());
		this.cardNextStudyTime.setTo(cardNextStudyTime.getTo());
		this.cardNextStudyTime.setValue(cardNextStudyTime.getValue());
		this.cardNextStudyTime.setRelativeValue(cardNextStudyTime.getRelativeValue());
		this.cardNextStudyTime.setPattern(cardNextStudyTime.getPattern());
	}
	public ScreenInteger getCardHardFactory() {
		return cardHardFactory;
	}
	public void setCardHardFactory(ScreenInteger cardHardFactory) {
		this.cardHardFactory = cardHardFactory;
	}
	public ScreenInteger getCardStudyCount() {
		return cardStudyCount;
	}
	public void setCardStudyCount(ScreenInteger cardStudyCount) {
		this.cardStudyCount = cardStudyCount;
	}
	public ScreenInteger getCardWrongCount() {
		return cardWrongCount;
	}
	public void setCardWrongCount(ScreenInteger cardWrongCount) {
		this.cardWrongCount = cardWrongCount;
	}
	@Override
	public String toString() {
		return "ScreenConditions [userId=" + userId + ", noteTypeId=" + noteTypeId + ", noteId=" + noteId
				+ ", cardStyleId=" + cardStyleId + ", deckName=" + deckName + ", noteCreateTime=" + noteCreateTime
				+ ", noteEditTime=" + noteEditTime + ", noteTypeName=" + noteTypeName + ", cardStyleName="
				+ cardStyleName + ", cardNextStudyTime=" + cardNextStudyTime + ", cardHardFactory=" + cardHardFactory
				+ ", cardStudyCount=" + cardStudyCount + ", cardWrongCount=" + cardWrongCount + "]";
	}
	public PageBean getPageBean() {
		return pageBean;
	}
	public void setPageBean(PageBean pageBean) {
		this.pageBean = pageBean;
	}
	
}